package com.demo.controller;


import com.demo.domain.CtFarmImgarr;
import com.demo.service.impl.CtFarmImgarrServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * (CtFarmImgarr)表控制层
 *
 * @author makejava
 * @since 2021-07-07 09:52:34
 */
@RestController
public class CtFarmImgarrController {
    /**
     * 服务对象
     */
    @Resource
    private CtFarmImgarrServiceImpl ctFarmImgarrService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne6")
    public List<CtFarmImgarr> selectOne(Integer id) {
        return this.ctFarmImgarrService.queryById(id);
    }

}